package com.corgi.kotlin.kotlin.repository

import com.corgi.kotlin.kotlin.domain.TestPeople
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository

/**
 * @title: TestPeopleRepository
 * @description: people仓储
 * @author: dengmiao
 * @create: 2019-10-15 11:42
 **/
@Repository
interface TestPeopleRepository : CrudRepository<TestPeople, Long> {

    /**
     * 按lastName查询
     */
    fun findByLastName(lastName: String): List<TestPeople>?
}